<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<!--WARNING: This file is maintained by ROO! IT WILL BE OVERWRITTEN unless you specify null	@RooWebScaffold(automaticallyMaintainView = false) in the governing controller-->
<jsp:directive.include file="/WEB-INF/jsp/includes.jsp"/>
<jsp:directive.include file="/WEB-INF/jsp/header.jsp"/>
<script type="text/javascript">dojo.require("dijit.TitlePane");</script>
<div dojoType="dijit.TitlePane" style="width: 100%" title="Create New Team">
    <form:form action="/yourscrum/team" method="POST" modelAttribute="team">
        <div id="roo_team_name">
            <label for="_name">Name:</label>
            <form:textarea cssStyle="width:250px;height:5em" id="_name" path="name"/>
            <script type="text/javascript">Spring.addDecoration(new Spring.ElementDecoration({elementId : "_name", widgetType: "dijit.form.Textarea", widgetAttrs: {value: ""}})); </script>
            <br/>
            <form:errors cssClass="errors" id="_name" path="name"/>
            <script type="text/javascript">Spring.addDecoration(new Spring.ElementDecoration({elementId : "_name", widgetType : "dijit.form.ValidationTextBox", widgetAttrs : {promptMessage: "Enter Name (required)", invalidMessage: "", required : true}})); </script>
        </div>
        <br/>
        <div id="roo_team_description">
            <label for="_description">Description:</label>
            <form:textarea cssStyle="width:250px;height:26em" id="_description" path="description"/>
            <script type="text/javascript">Spring.addDecoration(new Spring.ElementDecoration({elementId : "_description", widgetType: "dijit.form.Textarea", widgetAttrs: {value: ""}})); </script>
            <br/>
            <form:errors cssClass="errors" id="_description" path="description"/>
            <script type="text/javascript">Spring.addDecoration(new Spring.ElementDecoration({elementId : "_description", widgetType : "dijit.form.ValidationTextBox", widgetAttrs : {promptMessage: "Enter Description (required)", invalidMessage: "", required : true}})); </script>
        </div>
        <br/>
        <div id="roo_team_project">
            <c:if test="${not empty projects}">
                <label for="_project">Project:</label>
                <form:select cssStyle="width:250px" id="_project" path="project">
                    <form:options itemValue="id" items="${projects}" itemLabel="title"/>
                </form:select>
                <script type="text/javascript">Spring.addDecoration(new Spring.ElementDecoration({elementId : "_project", widgetType: "dijit.form.FilteringSelect", widgetAttrs : {hasDownArrow : true}})); </script>
            </c:if>
        </div>
        <br/>
        <div class="submit" id="roo_team_submit">
            <script type="text/javascript">Spring.addDecoration(new Spring.ValidateAllDecoration({elementId:'proceed', event:'onclick'}));</script>
            <input id="proceed" type="submit" value="Save"/>
        </div>
    </form:form>
</div>
<jsp:directive.include file="/WEB-INF/jsp/footer.jsp"/>
